package com.owc.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author xiaom
 * @Date 2020/2/26 16:58
 * @Version 1.0.0
 * @Description <>
 **/
@Data
@ApiModel("用户收益")
public class UserIncome implements Serializable {

    @ApiModelProperty("昨日收益")
    private BigDecimal yesterdayIncome;

    @ApiModelProperty("总收益")
    private BigDecimal totalIncome;

    public UserIncome(BigDecimal yesterdayIncome, BigDecimal totalIncome) {
        this.yesterdayIncome = yesterdayIncome;
        this.totalIncome = totalIncome;
    }
}
